package com.wyzz.hr.pojo;

import java.util.Date;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.base.wf.AbstractWorkflow;
import com.wyzz.hr.pojo.base.BaseRecruitplan;

public class Recruitplan extends BaseRecruitplan {

	public Recruitplan() {
	}

	public Recruitplan(String id) {
		super(id);
	}

	public Recruitplan(String id, Location recpWorkLocation,
			Employee recpLastChangeBy, Department recpDepartmentNo,
			PositionBase recpPbNo, Employee recpCreateBy, Emptype recpType,
			Integer recpNo, Date recpStartDate, Integer recpNumberExpect,
			Integer recpStatus, Date recpCreateTime, Date recpLastChangeTime) {
		super(id, recpWorkLocation, recpLastChangeBy, recpDepartmentNo,
				recpPbNo, recpCreateBy, recpType, recpNo, recpStartDate,
				recpNumberExpect, recpStatus, recpCreateTime,
				recpLastChangeTime);
	}

	public String[] getDepts() {
		return depts;
	}

	public void setDepts(String depts[]) {
		this.depts = depts;
	}

	public AbstractWorkflow getWorkflow() {
		return workflow;
	}

	public String getRecpStatusMean() {
		return recpStatusMean;
	}

	public void setRecpStatus(Integer recpStatus) {
		super.setRecpStatus(recpStatus);
		if (recpStatus == null) {
			recpStatusMean = null;
		} else {
			String status = ComonBeans.getParameterValue(PROP_RECP_STATUS,
					new String[] { recpStatus.toString() });
			if (status != null)
				recpStatusMean = status.trim();
			else
				recpStatusMean = null;
		}
	}

	public void setWorkflow(AbstractWorkflow workflow) {
		this.workflow = workflow;
	}

	private static final long serialVersionUID = 1L;
	private AbstractWorkflow workflow;
	private String recpStatusMean;
	private String depts[];
}
